package com.ziyia.uicustomviews;

import android.content.Intent;

public class Msg {
    public static final Integer TYPE_RECEIVED = 0;
    public static final Integer TYPE_SENT = 1;
    private String content;
    private Integer type;


    public Msg(String content, Integer type) {
        this.content = content;
        this.type = type;
    }

    public static Integer getTypeMessage() {
        return TYPE_RECEIVED;
    }

    public static Integer getTypeSent() {
        return TYPE_SENT;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Msg{" +
                "content='" + content + '\'' +
                ", type=" + type +
                '}';
    }
}
